import fileAPI from '@/utils/fileAPI'
export function importMethod(files) {
  const formData = new FormData()
  for (let i = 0; i < files.length; i++) {
    formData.append('file', files[i], files[i].name)
  }
  return fileAPI({
    url: '/device/spare/inventoryNumber/import',
    method: 'post',
    data: formData
  })
}
